/*eslint-disable */ 
import request from "@/utils/request";

export function carList(data) {
    return request({
      url: `car/list?pageNumber=${data.pageNumber}&pagesize=${data.pagesize}`,
      method: "get",
    });
}
export function addCar(data) {
  return request({
    url: `/car/addCar`,
    method: "post",
    data:data
  });
}
export function deleteCar(id) {
  return request({
    url: `/car/deleteCar?id=${id}`,
    method: "post",
  });
}
export function update(data) {
  return request({
    url: `/car/update`,
    method: "post",
    data:data
  });
}

// 分配教练
export function assignment(data) {
  return request({
    url: `/car/assignment`,
    method: "post",
    data:data
  });
}

export function carInfo(id) {
  return request({
    url: `/car/getInfo?id=${id}`,
    method: "get",
  });
}
export function searchCar(data) {
  return request({
    url: "car/search",
    data: data,
    method: "post",
  });
}
